package com.jiang.demo2.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration("config")
public class ACMConfig {

    //自动刷新
    @NacosValue(value = "${demo}", autoRefreshed = true)
    public String demo;

    @Value("${demo2}")
    public String demo2;

}
